package com.sky.controller;

import com.sky.dto.ImageClassifyPageDto;
import com.sky.service.ImageClassifyServiceTwo;
import com.sky.vo.AjaxResult;
import com.sky.vo.DataGridView;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author majinan
 */
@RestController
@RequestMapping("/imageClassify")
@Api(tags = {"搜索记录管理"})
public class ImageClassifyController {

    @Autowired
    private ImageClassifyServiceTwo imageClassifyService;

    /**
     * 分页查询
     */
    @GetMapping("listFeedBackForPage")
    public AjaxResult listUserForPage(ImageClassifyPageDto dto){
        DataGridView gridView = this.imageClassifyService.selectList(dto);
        return AjaxResult.success("查询成功",gridView.getData(),gridView.getTotal());
    }

}
